<form action="{:url('')}" method="post" class="layui-form ajax _form">
    <div class="layui-form-item">
        <label class="layui-form-label">配置标识</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="name" value="{$record.name|default=''}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">配置标题</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="title" value="{$record.title|default=''}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">排序</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="sort" value="{$record.sort|default=0}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">配置值</label>
        <div class="layui-input-block">
            <textarea name="value" class="layui-textarea">{$record.value|default=''}</textarea>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">说明</label>
        <div class="layui-input-block">
            <textarea name="remark" class = "layui-textarea">{$record.remark|default=''}</textarea>
        </div>
    </div>
    <div class = "layui-form-item">
        <label class = "layui-form-label">是否有效</label>
        <div class="layui-input-block">
            <input type="radio" name="status" value = "1" {if condition="isset($record['status']) and $record['status'] eq 1"}checked{/if} title="有效"/>
            <input type="radio" name="status" value = "0" {if condition="isset($record['status']) and $record['status'] eq 0"}checked{/if} title="无效"/>
        </div>
    </div>
    <div class="layui-form-item" style = "text-align: center;">
            <input type="hidden" name="id" value="{$record.id|default=''}">
            <button class="layui-btn layui-btn-info" id="submit" type="submit" >确 定</button>
        </div>
    </div>
</form>

